package com.itheima.service;

import com.itheima.pojo.PageBean;
import com.itheima.pojo.Student;
import com.itheima.pojo.StudentQueryParam;
import org.apache.ibatis.annotations.Select;


public interface StudentsService {
    PageBean findAll(StudentQueryParam studentQueryParam);

    void delete(Integer[] ids);

    void add(Student student);

    void violation(Integer id, Integer score);

    @Select("select s.violation_score from student s where id=#{id}")
    Object getInfoById(Integer id);

    void update(Student student);



//    void delete(Integer id);
}
